#ifndef VOICECOMMANDS_H
#define VOICECOMMANDS_H

#include <QCoreApplication>
#include <QDir>
#include <QString>
#include <QtMultimedia/QAudioRecorder>


class VoiceCommands : public QObject
{
    Q_OBJECT

public:
    VoiceCommands();

public:
    Q_INVOKABLE QString recognize();
    Q_INVOKABLE void startRecording();
    Q_INVOKABLE void stopRecording();


private:
    QAudioRecorder audioRecorder;
    QString recognizedLine;
    QDir resourcePath;
    bool mRecording;

};
#endif // VOICECOMMANDS_H
